package weifei.wx.community.entity.dto;


import lombok.Data;
import weifei.wx.community.entity.TieComment;

import java.util.Date;

@Data
public class TieCommentDTO
{
    private UserDTO userDTO;
    private Long id;
    private Long tieId;
    private Date publishTime;
    private String content;

    public TieCommentDTO(UserDTO userDTO, TieComment tieComment)
    {
        this.userDTO = userDTO;
        this.id = tieComment.getId();
        this.tieId = tieComment.getTieId();
        this.publishTime = tieComment.getPublishTime();
        this.content = tieComment.getContent();
    }
}

